﻿/// <reference path="Meres.js" />

projects = function () {
    this.installPluggin = function() {
        installjQueryPlugin();
    };

    installjQueryPlugin();
    function installjQueryPlugin() {
        $("#projectsView").jXamlGrid({
            gridDef: gridDefs[3]
        });
    }


    function loadModule() {
        var pli = $("#peopleView .peopleList .ui-selected");
        var mli = $("#peopleView .peopleFunctions .ui-selected");
        if (mli.length == 0) {
            $($('.peopleFunctions li')[0]).addClass('ui-selected');
            mli = $("#peopleView .peopleFunctions .ui-selected");
        }
        if (pli.length == 0 || mli.length == 0)
            return;
        var pId = pli.attr('data-personId');
        var pName = pli.html();
        $('.selectedPerson').html(pName);

        var mId = mli.attr('data-moduleId');
        var url = '/Meres/People/PersonInfo?personId=' + 0;
        doAjax(url,
        function (evt) {
            $('#peopleView .functionContent').html(evt);           

        });
    }

}
